<include file="Public/head" />
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.css" />
<script src="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.js" type="text/javascript"></script>
<style type='text/css'>
    #reserve_start_time{height:24px;border:solid 1px #c5c5c5;background:url(http://img1.isou365.cn/paimai/yunying/images/time_pic.jpg) no-repeat 120px 5px; cursor:pointer;}
    #reserve_end_time{height:24px;border:solid 1px #c5c5c5;background:url(http://img1.isou365.cn/paimai/yunying/images/time_pic.jpg) no-repeat 120px 5px;cursor:pointer;}
    .table tbody tr td a:link{color:#20ab4f;text-decoration: underline;}
    .table tbody tr td a:visited{text-decoration: underline;color:#303030;}
    .table tbody tr td a:hover{text-decoration: underline;color:#20ab4f;}
    .table tbody tr td a:active{color:#f99d0c;text-decoration: underline;}
    .table tbody tr td a.not-point{color:#9f9f9f; text-decoration: none;}
    .search6{display: block;clear: left;padding-top: 10px;}
    .search6-input{ margin-left: 0!important;}
</style>
</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar"  menu="clcwht.zxplgl" />
    <div class="mianR">
        <div class="yuList" >
            <form id="searchFrom">
                <div class="yuSuo clearfix">
                    <div id="search1">
                        <input style="margin-left: 10px;" id="comment_id" type="text" placeholder="请输入评论ID" value="">
                        <input style="margin-left: 10px;" id="content" type="text" placeholder="请输入评论关键字" value="">
                        <input style="margin-left: 10px;" id="user_id" type="text" placeholder="请输入评论用户ID" value="">
                        <input style="margin-left: 10px;" id="mobile" type="text" placeholder="请输入评论用户" value="">
                        <input style="margin-left: 10px;" id="article_id" type="text" placeholder="请输入资讯ID" value="{$_GET['article_id']}">
                    </div>
                </div>
                <div class="yuSuo clearfix">
                    <div id="search2">
                        <select class="branch_company" id="status">
                            <option value="">请选择评论状态</option>
                            <option value="1">启用</option>
                            <option value="3">违规禁用</option>
                        </select>
                        <select class="branch_company" id="report">
                            <option value="">请选择举报状态</option>
                            <option value="1">是</option>
                            <option value="2">否</option>
                        </select>
                        <input readonly type="text" id="start_time" name="start_time" placeholder="评论开始时间"/>
                        <em></em>
                        <input readonly type="text" id="end_time" name="end_time" placeholder="评论结束时间"/>
                    </div>
                    <input type="button" onclick="searchList();" id="search" value="搜索" class="suoSou">
                    <input type="button" onclick="window.location=window.location.href" value="全部" class="suoSou">
                </div>
            </form>
        </div>
        <div class="listBox" id="listBox">

        </div>
    </div>
    <div class="clear"></div>
    <include file="Public/foot" />
    <script type="text/javascript">
        $("#start_time").ymdateplugin({
            showTimePanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#end_time").ymdateplugin({
            showTimePanel: true,
            changeMonth: true,
            changeYear: true
        });
        var page = 1;

        searchList();

        function get_list(params){
            $.get("/comment/articleComment",params, function(data){
                $("#listBox").html(data);
            },"html");
        }
        function get_page(p) {
            page = p;
            searchList();
        }

        function searchList(){
            var params = {};
            params.p = page;

            var comment_id = $('#comment_id').val();
            if(comment_id){
                params.comment_id = comment_id;
            }

            var content = $('#content').val();
            if(content){
                params.content = content;
            }

            var user_id = $('#user_id').val();
            if(user_id){
                params.user_id = user_id;
            }

            var mobile = $('#mobile').val();
            if(mobile){
                params.mobile = mobile;
            }

            var article_id = $('#article_id').val();
            if(article_id){
                params.article_id = article_id;
            }

            var status = $('#status').val();
            if(status){
                params.status = status;
            }

            var report = $('#report').val();
            if(report){
                params.report = report;
            }

            var start_time = $('#start_time').val();
            if(start_time){
                params.start_time = start_time;
            }

            var end_time = $('#end_time').val();
            if(end_time){
                params.end_time = end_time;
            }

            get_list(params);
        }

        function get_url(){
            var url = "";
            return url;
        }


    </script>